home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 February / OpenLinux 2.3 CD.iso / live / usr / share / vim / syntax / lilo.vim < prev    next >
Encoding:
Text File  |  1999-08-10  |  1.5 KB  |  54 lines

  1. " Vim syntax file
  2. " Language:    lilo
  3. " Maintainer:    Klaus Muth <mh@hagos.de>
  4. " Last change:    1998 June 04
  5. " URL:        http://unitopia.mud.de/~monty/vim/syntax/lilo.vim
  6. "
  7. " Sorry, not much different colors in it. Any line without color must be 
  8. " an error (eiter in the syntax file or in the lilo.conf file ;).
  9.  
  10. " Remove any old syntax stuff hanging around.
  11. syn clear
  12.  
  13. syn case match
  14.  
  15. " global options /w parameter
  16. syn keyword    liloPOption    backup boot default delay disk disktab
  17. syn keyword    liloPOption    initrd install map message 
  18. syn keyword    liloPOption    password serial timeout
  19. syn keyword    liloPOption    verbose
  20. syn match    liloPOption    "force-backup"
  21.  
  22. " global options /wo parameter
  23. syn keyword    liloOption    compact linear
  24. syn keyword    liloOption    lock nowarn optional prompt restricted
  25. syn match    liloOption    "fix-table"
  26. syn match    liloOption    "ignore-table"
  27.  
  28. " per-image /w parameter:
  29. syn keyword    liloPOption    range loader table label alias append
  30. syn keyword    liloPOption    literal ramdisk root vga 
  31.  
  32. " per-image /wo parameter:
  33. syn keyword    liloOption    unsafe 
  34. syn match    liloOption    "read-only" 
  35. syn match    liloOption    "read-write" 
  36.  
  37. syn match    liloImage    "\s*\(image\|other\)\s*=.*$"
  38. syn match    liloPath    "\/.*"
  39. syn match    liloNumber    "\d\+"
  40.  
  41. if !exists("did_lilo_syntax_inits")
  42.   let did_lilo_syntax_inits = 1
  43.   " The default methods for highlighting. Can be overridden later.
  44.   hi link liloPOption    Keyword
  45.   hi link liloOption    Keyword
  46.   hi link liloPath    Constant
  47.   hi link liloNumber    Number
  48.   hi link liloImage    Title
  49. endif
  50.  
  51. let b:current_syntax = "lilo"
  52.  
  53. " vim: ts=8
  54.